
<#include "header.html">

<br>
<br>

<div class="container">
<div class="row">
    <div class="col s4 l4"></div>
    <div class="col s4 l4">
    <form id="regloginform" class="col s12" method="post">


        <#if msg??>
        <div class="card-panel red lighten-5">
                <span class="red-text ">

                ${msg}

            </span>
        </div>
        <#else>
    </#if>


        <div align="center">
            <img src="/images/logo.png" height="120">
        </div>






        <div class="row">
            <div class="input-field col s12">
                <input  name="username" id="username" type="text" class="validate">
                <label for="username">用户名</label>
            </div>

        </div>

        <div class="row">
            <div class="input-field col s12">
                <input name="password" id="password" type="password" class="validate">
                <label for="password">密码</label>
            </div>
        </div>
        <input type="hidden" name="next" value="/">

        <div class="row">
            <div class="col s5">
                <button onclick="form=document.getElementById('regloginform');form.action='/login/'" class="btn waves-effect waves-light" type="submit" name="action">登录

                </button>
            </div>
            <div class="col s2"></div>
            <div class="col s5">
                <button onclick="form=document.getElementById('regloginform');form.action='/reg/'" class="btn waves-effect waves-light" type="submit" name="action">注册

                </button>
            </div>
        </div>



    </form>
    </div>
</div>
</div>


<#include "footer.html">


